<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>DREAM Toolbox - generateCrossoverValues</title>

   <meta name="keywords" content="generateCrossoverValues">

   <meta name="description" content="generateCrossoverValues">

   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  
   <meta name="robots" content="index, follow">

   <meta author="Diana Gorea">

   <link type="text/css" rel="stylesheet" href="styles/dream_styles.css">
 
</head>



<body>
<a name="_top"></a>

<div class="linkheader">
<a href="matlab:edit(fullfile(dreamroot,'generateCrossoverValues'))">View source code of the function <span style="font-family:monospace">generateCrossoverValues()</span> in the MATLAB editor</a><br><br>
<a href="matlab:web(fullfile(dreamroot,'html','contents.html'),'-helpbrowser')">Toolbox contents</a>
</div>

<div class="spacer">
</div>


<div class="h1">
updateDelta
</div>

<div class="h2">
Syntax
</div>

<div class="txt">
<code>deltaTot = updateDelta(dreamPar,deltaTot,acceptedChild,lastPointsFromEverySeq, currentCrossoverValues)</code>
</div>

<div class="h2">
Input arguments
</div>

<div class="txt">
<ul>
<li><span style="font-family:monospace">dreamPar</span> is a structure containing the parameters of the DREAM algorithm.
<li><span class="code">deltaTot</span> is a vector of <span class = "code">dreamPar.nCrossoverValues</span> elements containing 
the the total normalized Euclidean distance between the old points and the new points (in the chains updated by that specific 
crossover value).
<li> <span class="code">acceptedChild</span> is a matrix with <span class = "code">dreamPar.nSeq</span> rows containing the accepted points in each of the chains.
<li><span class="code">lastPointsFromEverySeq</span> is a matrix with <span class = "code">dreamPar.nSeq</span> rows containing the current points in each of the chains.
<li><span style="font-family:monospace">currentCrossoverValues</span> is a <span class="code">dreamPar.nSeq </span>
column vector that contains the crossover probabilities for the specific offspring <span class="code">(1...dreamPar.nOffspringPerSeq)</span>.
</ul>
</div>

<div class="h2">
Output arguments
</div>

<div class="txt">
<ul>
<li><span class="code">deltaTot</span> is the updated <code>deltaTot</code> taking into account the current generation.
</ul>
</div>

<div class="h2">
Description
</div>

<div class="txt">
 For each crossover value it calculates the total normalized Euclidean distance between the old points in <span class = "code">
 lastPointsFromEverySeq</span> and the new points in <span class = "code">acceptedChild</span> (in the chains updated by that specific crossover value)
</div>

</div>
</body>
</html>